<?php
header('Content-Type:text/html;charset=gbk');
require '../../packages/connect_database.php';
mysql_select_db("auction");
$query = mysql_query("SELECT COUNT(*) FROM auction WHERE phone = '" . $_COOKIE["phone"] . "'");
$result = mysql_fetch_row($query);
if($result[0] == 0) {
	echo "null";
	exit();
} else {
	$count = $result[0] . "<count>";
	$num = $result[0];
	$query = mysql_query("SELECT time,info FROM auction WHERE phone = '" . $_COOKIE["phone"] . "'");
	$result = mysql_fetch_row($query);
	for($i = 0;$i < $num;$i++) {
		$count .= ($result[0] . "<fenge>" . $result[1] . "<record>");
		$result = mysql_fetch_row($query);
	}
	echo $count;
}
